The SimpleMenu Component > Customizing the SimpleMenu component

 

Customizing the SimpleMenu component

You can customize the appearance of a component by changing the properties of the FStyleFormat object. If you want to change a component's appearance completely, try to reskin it (described below).

 
Modifying FStyleFormat properties

The following table lists FStyleFormat properties you can edit to format the SimpleMenu component. You can change individual elements, or you can set global properties using globalStyleFormat:

Property

Description

face

Changes the background color of the SimpleMenu component.

highlight

Changes the highlight color of the bevels on the SimpleMenu component.

highlight3D

Changes the second highlight color of the bevels on the SimpleMenu component.

shadow

Changes the shadow color of the bevels on the SimpleMenu component.

darkShadow

Changes the darker shadow color of the bevels on the SimpleMenu component.


Here is an example of how to use the FStyleFormat object to set style properties for the SimpleMenu component:

globalStyleFormat.face = 0xffccff;
globalStyleFormat.highlight = 0xff0066;
globalStyleFormat.darkShadow = 0x990066;

For more information about the FStyleFormat object and a list of all its properties, see the FStyleFormat entries in the online ActionScript Dictionary in Macromedia Flash MX.

 
Reskinning the SimpleMenu component

When you add components to a Macromedia Flash document, a SimpleMenu directory is added to the Library panel. That directory contains a subdirectory called Name. Within that subdirectory is a Skins subdirectory for each component that contains user interface elements you can redesign. Editing the skin completely changes the appearance of the component. Change the skin of an instance of a component by selecting the component on the stage and selecting Edit > Edit in Place, or by double-clicking it in the directory in the Library panel.

The assets for the SimpleMenu component are located in the Library panel in the Flash UI Components\Core Assets-Developer Only\SimpleMenu Assets directory.

For more information on customizing component skins, see the Macromedia Flash MX Help (select Help > Using Flash from within the program).